home *** CD-ROM | disk | FTP | other *** search
- <!--- This shows LSNumberFormat --->
-
- <HTML>
-
- <HEAD>
- <TITLE>LSNumberFormat Example</TITLE>
- </HEAD>
-
- <BASEFONT FACE="Arial, Helvetica" SIZE=2>
- <BODY bgcolor="#FFFFD5">
-
- <H3>LSNumberFormat Example</H3>
-
- <P>LSNumberFormat returns a number value using
- the locale convention.
-
- <!--- loop through a list of possible locales and
- show number values --->
- <CFLOOP LIST="#Server.Coldfusion.SupportedLocales#"
- INDEX="locale" DELIMITERS=",">
- <CFSET oldlocale = SetLocale("#locale#")>
-
- <CFOUTPUT><P><B><I>#locale#</I></B><BR>
- #LSNumberFormat(-1234.5678, "_________")#<BR>
- #LSNumberFormat(-1234.5678, "_________.___")#<BR>
- #LSNumberFormat(1234.5678, "_________")#<BR>
- #LSNumberFormat(1234.5678, "_________.___")#<BR>
- #LSNumberFormat(1234.5678, "$_(_________.___)")#<BR>
- #LSNumberFormat(-1234.5678, "$_(_________.___)")#<BR>
- #LSNumberFormat(1234.5678, "+_________.___")#<BR>
- #LSNumberFormat(1234.5678, "-_________.___")#<BR>
- <hr noshade>
- </CFOUTPUT>
-
- </CFLOOP>
-
-
-
- </BODY>
- </HTML>
-